package com.fourWork.workFour;

public class User {
    //声明定义用户名变量
    private String name;
    //声明密码
    private String passwd;

    public User() {
    }

    public User(String name, String passwd) {
        this.name = name;
        this.passwd = passwd;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPasswd() {
        return passwd;
    }

    public void setPasswd(String passwd) {
        this.passwd = passwd;
    }

    @Override
    public String toString() {
        return "用户："+getName()+"，密码:"+getPasswd();
    }
}
